import request from '@/utils/request'

// 查询支付列表
export function listPaymethod(query) {
  return request({
    url: '/system/paymethod/list',
    method: 'get',
    params: query
  })
}

// 查询支付详细
export function getPaymethod(payid) {
  return request({
    url: '/system/paymethod/' + payid,
    method: 'get'
  })
}

// 新增支付
export function addPaymethod(data) {
  return request({
    url: '/system/paymethod',
    method: 'post',
    data: data
  })
}

// 修改支付
export function updatePaymethod(data) {
  return request({
    url: '/system/paymethod',
    method: 'put',
    data: data
  })
}

// 删除支付
export function delPaymethod(payid) {
  return request({
    url: '/system/paymethod/' + payid,
    method: 'delete'
  })
}

// 查询支付列表
export function getPaymethodAll() {
  return request({
    url: '/system/paymethod/list/all',
    method: 'get'
  })
}
